<?php
namespace EM\NewsBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class NewExtraType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('title', 'text', array('attr' => array('class' => 'validate[required,maxSize[250]]', 'placeholder' => 'Title goes here') ))
                ->add('titleSeo', 'text', array('attr' => array('class' => 'validate[required,maxSize[250]]')))
                ->add('content', 'textarea', array('attr' => array('rows' => '8' ) ))
                ->add('metaDescription', 'textarea',array('attr' => array('data-maxlength' => '156')))
                ->add('status', 'choice', array('empty_value' => 'Choose a status',
						'choices'   => array(
							'P'   => 'Revision',
							'Dr' => 'Draft'
						),
						'expanded'  => false,
						'multiple'  => false,
					))

	;
				
		
    }
    public function getName()
    {
        return 'news_extra_form';
    }
	
}

